import java.util.Scanner;
public class ShuZu {
        public static void main(String[] args) {
            String[] arr={"aa","bb","cc","ff"};
            Scanner in=new Scanner(System.in);
            System.out.println("请输入你要删除的字符串");
            String del=in.next();
            int i;
            for(i=0;i<arr.length;i++){
                if (del.equals(arr[i])){
                    arr[i]=null;
                    for(int j=i;j<arr.length-1;j++)
                    {
                        if(arr[j+1]==null){
                            arr[j]=null;
                            break;
                        }
                        arr[j]=arr[j+1];
                    }
                    arr[arr.length-1]=null;
                }
            }
            for (i=0;i<arr.length;i++) System.out.println(arr[i]);
        }
    }

